/* SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note */
/*
 * Sony Programmable I/O Control Device driver for VAIO
 *
 * Copyright (C) 2001-2005 Stelian Pop <stelian@popies.net>
 * Copyright (C) 2005      Narayanan R S <nars@kadamba.org>
 * Copyright (C) 2001-2002 Alcôve <www.alcove.com>
 * Copyright (C) 2001      Michael Ashley <m.ashley@unsw.edu.au>
 * Copyright (C) 2001      Junichi Morita <jun1m@mars.dti.ne.jp>
 * Copyright (C) 2000      Takaya Kinjo <t-kinjo@tc4.so-net.ne.jp>
 * Copyright (C) 2000      Andrew Tridgell <tridge@valinux.com>
 *
 * Earlier work by Werner Almesberger, Paul `Rusty' Russell and Paul Mackerras.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program; if not, write to the Free Software
 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 *
 */

#pragma once
#include <linux/types.h>

/* events the user application reading /dev/sonypi can use */


#define SONYPI_EVENT_IGNORE			 0
#define SONYPI_EVENT_JOGDIAL_DOWN		 1
#define SONYPI_EVENT_JOGDIAL_UP			 2
#define SONYPI_EVENT_JOGDIAL_DOWN_PRESSED	 3
#define SONYPI_EVENT_JOGDIAL_UP_PRESSED		 4
#define SONYPI_EVENT_JOGDIAL_PRESSED		 5
#define SONYPI_EVENT_JOGDIAL_RELEASED		 6	/* obsolete */
#define SONYPI_EVENT_CAPTURE_PRESSED		 7
#define SONYPI_EVENT_CAPTURE_RELEASED		 8	/* obsolete */
#define SONYPI_EVENT_CAPTURE_PARTIALPRESSED	 9
#define SONYPI_EVENT_CAPTURE_PARTIALRELEASED	10
#define SONYPI_EVENT_FNKEY_ESC			11
#define SONYPI_EVENT_FNKEY_F1			12
#define SONYPI_EVENT_FNKEY_F2			13
#define SONYPI_EVENT_FNKEY_F3			14
#define SONYPI_EVENT_FNKEY_F4			15
#define SONYPI_EVENT_FNKEY_F5			16
#define SONYPI_EVENT_FNKEY_F6			17
#define SONYPI_EVENT_FNKEY_F7			18
#define SONYPI_EVENT_FNKEY_F8			19
#define SONYPI_EVENT_FNKEY_F9			20
#define SONYPI_EVENT_FNKEY_F10			21
#define SONYPI_EVENT_FNKEY_F11			22
#define SONYPI_EVENT_FNKEY_F12			23
#define SONYPI_EVENT_FNKEY_1			24
#define SONYPI_EVENT_FNKEY_2			25
#define SONYPI_EVENT_FNKEY_D			26
#define SONYPI_EVENT_FNKEY_E			27
#define SONYPI_EVENT_FNKEY_F			28
#define SONYPI_EVENT_FNKEY_S			29
#define SONYPI_EVENT_FNKEY_B			30
#define SONYPI_EVENT_BLUETOOTH_PRESSED		31
#define SONYPI_EVENT_PKEY_P1			32
#define SONYPI_EVENT_PKEY_P2			33
#define SONYPI_EVENT_PKEY_P3			34
#define SONYPI_EVENT_BACK_PRESSED		35
#define SONYPI_EVENT_LID_CLOSED			36
#define SONYPI_EVENT_LID_OPENED			37
#define SONYPI_EVENT_BLUETOOTH_ON		38
#define SONYPI_EVENT_BLUETOOTH_OFF		39
#define SONYPI_EVENT_HELP_PRESSED		40
#define SONYPI_EVENT_FNKEY_ONLY			41
#define SONYPI_EVENT_JOGDIAL_FAST_DOWN		42
#define SONYPI_EVENT_JOGDIAL_FAST_UP		43
#define SONYPI_EVENT_JOGDIAL_FAST_DOWN_PRESSED	44
#define SONYPI_EVENT_JOGDIAL_FAST_UP_PRESSED	45
#define SONYPI_EVENT_JOGDIAL_VFAST_DOWN		46
#define SONYPI_EVENT_JOGDIAL_VFAST_UP		47
#define SONYPI_EVENT_JOGDIAL_VFAST_DOWN_PRESSED	48
#define SONYPI_EVENT_JOGDIAL_VFAST_UP_PRESSED	49
#define SONYPI_EVENT_ZOOM_PRESSED		50
#define SONYPI_EVENT_THUMBPHRASE_PRESSED	51
#define SONYPI_EVENT_MEYE_FACE			52
#define SONYPI_EVENT_MEYE_OPPOSITE		53
#define SONYPI_EVENT_MEMORYSTICK_INSERT		54
#define SONYPI_EVENT_MEMORYSTICK_EJECT		55
#define SONYPI_EVENT_ANYBUTTON_RELEASED		56
#define SONYPI_EVENT_BATTERY_INSERT		57
#define SONYPI_EVENT_BATTERY_REMOVE		58
#define SONYPI_EVENT_FNKEY_RELEASED		59
#define SONYPI_EVENT_WIRELESS_ON		60
#define SONYPI_EVENT_WIRELESS_OFF		61
#define SONYPI_EVENT_ZOOM_IN_PRESSED		62
#define SONYPI_EVENT_ZOOM_OUT_PRESSED		63
#define SONYPI_EVENT_CD_EJECT_PRESSED		64
#define SONYPI_EVENT_MODEKEY_PRESSED		65
#define SONYPI_EVENT_PKEY_P4			66
#define SONYPI_EVENT_PKEY_P5			67
#define SONYPI_EVENT_SETTINGKEY_PRESSED		68
#define SONYPI_EVENT_VOLUME_INC_PRESSED		69
#define SONYPI_EVENT_VOLUME_DEC_PRESSED		70
#define SONYPI_EVENT_BRIGHTNESS_PRESSED		71
#define SONYPI_EVENT_MEDIA_PRESSED		72
#define SONYPI_EVENT_VENDOR_PRESSED		73
#define SONYPI_EVENT_DOCK_IN                74
#define SONYPI_EVENT_DOCK_OUT               75


/*
enum{
	SONYPI_EVENT_IGNORE,
	SONYPI_EVENT_JOGDIAL_DOWN,
	SONYPI_EVENT_JOGDIAL_UP,
	SONYPI_EVENT_JOGDIAL_DOWN_PRESSED,
	SONYPI_EVENT_JOGDIAL_UP_PRESSED,
	SONYPI_EVENT_JOGDIAL_PRESSED,
	SONYPI_EVENT_JOGDIAL_RELEASED,
	SONYPI_EVENT_CAPTURE_PRESSED,
	SONYPI_EVENT_CAPTURE_RELEASED,
	SONYPI_EVENT_CAPTURE_PARTIALPRESSED,
	SONYPI_EVENT_CAPTURE_PARTIALRELEASED,
	SONYPI_EVENT_FNKEY_ESC,
	SONYPI_EVENT_FNKEY_F1,
	SONYPI_EVENT_FNKEY_F2,
	SONYPI_EVENT_FNKEY_F3,
	SONYPI_EVENT_FNKEY_F4,
	SONYPI_EVENT_FNKEY_F5,
	SONYPI_EVENT_FNKEY_F6,
	SONYPI_EVENT_FNKEY_F7,
	SONYPI_EVENT_FNKEY_F8,
	SONYPI_EVENT_FNKEY_F9,
	SONYPI_EVENT_FNKEY_F10,
	SONYPI_EVENT_FNKEY_F11,
	SONYPI_EVENT_FNKEY_F12,
	SONYPI_EVENT_FNKEY_1,
	SONYPI_EVENT_FNKEY_2,
	SONYPI_EVENT_FNKEY_D,
	SONYPI_EVENT_FNKEY_E,
	SONYPI_EVENT_FNKEY_F,
	SONYPI_EVENT_FNKEY_S,
	SONYPI_EVENT_FNKEY_B,
	SONYPI_EVENT_BLUETOOTH_PRESSED,
	SONYPI_EVENT_PKEY_P1,
	SONYPI_EVENT_PKEY_P2,
	SONYPI_EVENT_PKEY_P3,
	SONYPI_EVENT_BACK_PRESSED,
	SONYPI_EVENT_LID_CLOSED,
	SONYPI_EVENT_LID_OPENED,
	SONYPI_EVENT_BLUETOOTH_ON,
	SONYPI_EVENT_BLUETOOTH_OFF,
	SONYPI_EVENT_HELP_PRESSED,
	SONYPI_EVENT_FNKEY_ONLY,
	SONYPI_EVENT_JOGDIAL_FAST_DOWN,
	SONYPI_EVENT_JOGDIAL_FAST_UP,
	SONYPI_EVENT_JOGDIAL_FAST_DOWN_PRESSED,
	SONYPI_EVENT_JOGDIAL_FAST_UP_PRESSED,
	SONYPI_EVENT_JOGDIAL_VFAST_DOWN,
	SONYPI_EVENT_JOGDIAL_VFAST_UP,
	SONYPI_EVENT_JOGDIAL_VFAST_DOWN_PRESSED,
	SONYPI_EVENT_JOGDIAL_VFAST_UP_PRESSED,
	SONYPI_EVENT_ZOOM_PRESSED,
	SONYPI_EVENT_THUMBPHRASE_PRESSED,
	SONYPI_EVENT_MEYE_FACE,
	SONYPI_EVENT_MEYE_OPPOSITE,
	SONYPI_EVENT_MEMORYSTICK_INSERT,
	SONYPI_EVENT_MEMORYSTICK_EJECT,
	SONYPI_EVENT_ANYBUTTON_RELEASED,
	SONYPI_EVENT_BATTERY_INSERT,
	SONYPI_EVENT_BATTERY_REMOVE,
	SONYPI_EVENT_FNKEY_RELEASED,
	SONYPI_EVENT_WIRELESS_ON,
	SONYPI_EVENT_WIRELESS_OFF,
	SONYPI_EVENT_ZOOM_IN_PRESSED,
	SONYPI_EVENT_ZOOM_OUT_PRESSED,
	SONYPI_EVENT_CD_EJECT_PRESSED,
	SONYPI_EVENT_MODEKEY_PRESSED,
	SONYPI_EVENT_PKEY_P4,
	SONYPI_EVENT_PKEY_P5,
	SONYPI_EVENT_SETTINGKEY_PRESSED,
	SONYPI_EVENT_VOLUME_INC_PRESSED,
	SONYPI_EVENT_VOLUME_DEC_PRESSED,
	SONYPI_EVENT_BRIGHTNESS_PRESSED,
	SONYPI_EVENT_MEDIA_PRESSED,
	SONYPI_EVENT_VENDOR_PRESSED,
	SONYPI_EVENT_DOCK_IN,
	SONYPI_EVENT_DOCK_OUT,
	SONYPI_EVENT_MENU_PRESSED,
	SONYPI_EVENT_HOLD_SWITCH,
	
	SONYPI_EVENTS_END_LIST//last
};
*/
